/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ModelLayer;
import java.util.ArrayList;
/**
 *
 * @author Martin
 */
public class Employee extends Person{
    
    private String accountInfo;
    private String comment;
    private double internalHourlyWage;
    private double externalHourlyWage;
    private long ssn;
    private String skill;
    private String typeNo;
    private String kreNo;
    private String cusNo;
    private ArrayList<PartOrder> partOrders;

    public Employee(int employeeId, String fName, String lName, String address, int zipCode, String city, String phoneNumber, String mobileNumber, String email, String accountInfo, String comment, double internalHourlyWage, double externalHourlyWage, long ssn, String skill, String typeNo, String kreNo, String cusNo) {
        super(employeeId, fName, lName, address, zipCode, city, phoneNumber, mobileNumber, email);
        this.accountInfo = accountInfo;
        this.comment = comment;
        this.internalHourlyWage = internalHourlyWage;
        this.externalHourlyWage = externalHourlyWage;
        this.ssn = ssn;
        this.skill = skill;
        this.typeNo = typeNo;
        this.kreNo = kreNo;
        this.cusNo = cusNo;
        partOrders = new ArrayList<PartOrder>();
    }
    
//    public Employee(int employeeId)
//    {
//        this.employeeId = employeeId;
//    }
    
    public Employee(int employeeId)
    {
        super(employeeId);
    }
    
    public Employee()
    {}

    /**
     * @return the accountInfo
     */
    public String getAccountInfo() {
        return accountInfo;
    }

    /**
     * @param accountInfo the accountInfo to set
     */
    public void setAccountInfo(String accountInfo) {
        this.accountInfo = accountInfo;
    }

    /**
     * @return the comment
     */
    public String getComment() {
        return comment;
    }

    /**
     * @param comment the comment to set
     */
    public void setComment(String comment) {
        this.comment = comment;
    }

    /**
     * @return the costPriceSalary
     */
    public double getInternalHourlyWage() {
        return internalHourlyWage;
    }

    /**
     * @param costPriceSalary the costPriceSalary to set
     */
    public void setInternalHourlyWage(double internalHourlyWage) {
        this.internalHourlyWage = internalHourlyWage;
    }

    /**
     * @return the salesPrice
     */
    public double getExternalHourlyWage() {
        return externalHourlyWage;
    }

    /**
     * @param salesPrice the salesPrice to set
     */
    public void setExternalHourlyWage(double externalHourlyWage) {
        this.externalHourlyWage = externalHourlyWage;
    }

    /**
     * @return the ssn
     */
    public long getSsn() {
        return ssn;
    }

    /**
     * @param ssn the ssn to set
     */
    public void setSsn(long ssn) {
        this.ssn = ssn;
    }

    /**
     * @return the skill
     */
    public String getSkill() {
        return skill;
    }

    /**
     * @param skill the skill to set
     */
    public void setSkill(String skill) {
        this.skill = skill;
    }

    /**
     * @return the typeNo
     */
    public String getTypeNo() {
        return typeNo;
    }

    /**
     * @param typeNo the typeNo to set
     */
    public void setTypeNo(String typeNo) {
        this.typeNo = typeNo;
    }

    /**
     * @return the debNo
     */
    public String getKreNo() {
        return kreNo;
    }

    /**
     * @param debNo the debNo to set
     */
    public void setKreNo(String kreNo) {
        this.kreNo = kreNo;
    }

    /**
     * @return the cusNo
     */
    public String getCusNo() {
        return cusNo;
    }

    /**
     * @param cusNo the cusNo to set
     */
    public void setCusNo(String cusNo) {
        this.cusNo = cusNo;
    }
    
    /**
     * @return the partOrders
     */
    public PartOrder getPartOrders(int index) {
        return partOrders.get(index);
    }

    /**
     * @param partOrders the partOrders to set
     */
    public void setPartOrders(PartOrder partOrder) {
        partOrders.add(partOrder);
    }
    
}
